#ifndef __DELAY_H
#define __DELAY_H 	
#ifdef __cplusplus
extern "C" {
#endif 
#include "at32f4xx.h"
	//ʹ��SysTick����ͨ����ģʽ���ӳٽ��й���
	//extern __IO uint32_t systick_cnt;
	//extern __IO uint32_t systick_us;
	//extern __IO uint32_t systick_ms;
	extern __IO uint32_t systick_cnt_ms;
	//extern __IO uint32_t systick_cnt_s;
	void SysTick_Init(uint32_t div);
	// volatile void delay_us(uint16_t us);
	volatile void delay_ms(uint32_t ms);
#ifdef __cplusplus
}
#endif 
#endif
